package net.zabuchy.iteration.action;


import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import net.zabuchy.address.entity.Address;
import net.zabuchy.helper.SessionHelper;
import net.zabuchy.issue.entity.Issue;
import net.zabuchy.meeting.bo.MeetingBo;
import net.zabuchy.meeting.entity.Meeting;
import net.zabuchy.project.bo.ProjectBo;
import net.zabuchy.project.entity.Project;
import net.zabuchy.user.bo.UserBo;
import net.zabuchy.user.entity.User;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

import freemarker.template.utility.StringUtil;

public class IterationAction extends ActionSupport {
	
	@Autowired
	private ProjectBo projectBo;
	
	@Autowired
	private UserBo userBo;
	
	@Autowired
    private SessionHelper sessionBean;
	
	private static final Logger LOGGER = Logger.getLogger(IterationAction.class.getName());
	
	private int iterationId;
	private byte actualIteration;
	private int customerId;
	private Date endDate;
	private int iterationNumber;
	private Project project;
	private Date startDate;
	private Set<Issue> issues = new HashSet<Issue>(0);
	

	
	public String createIteration() {
		
		return Action.SUCCESS;
	}
	
	public String listAll() {
		
        return Action.SUCCESS;
		
	}
	
	public String delete() {
       
        return Action.SUCCESS;
    }

	public ProjectBo getProjectBo() {
		return projectBo;
	}

	public void setProjectBo(ProjectBo projectBo) {
		this.projectBo = projectBo;
	}

	public UserBo getUserBo() {
		return userBo;
	}

	public void setUserBo(UserBo userBo) {
		this.userBo = userBo;
	}

	public SessionHelper getSessionBean() {
		return sessionBean;
	}

	public void setSessionBean(SessionHelper sessionBean) {
		this.sessionBean = sessionBean;
	}

	public int getIterationId() {
		return iterationId;
	}

	public void setIterationId(int iterationId) {
		this.iterationId = iterationId;
	}

	public byte getActualIteration() {
		return actualIteration;
	}

	public void setActualIteration(byte actualIteration) {
		this.actualIteration = actualIteration;
	}

	public int getCustomerId() {
		return customerId;
	}

	public void setCustomerId(int customerId) {
		this.customerId = customerId;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public int getIterationNumber() {
		return iterationNumber;
	}

	public void setIterationNumber(int iterationNumber) {
		this.iterationNumber = iterationNumber;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Set<Issue> getIssues() {
		return issues;
	}

	public void setIssues(Set<Issue> issues) {
		this.issues = issues;
	}

	
	
}